package com.haiya.adapter.twoway;

public class Client {
    public static void main(String[] args) {
        System.out.println("Adapter to adaptee -----------------------------");
        TwoWayAdaptee adaptee = new AdapteeRealize();
        TwoWayAdapter toAdaptee = new TwoWayAdapter(adaptee);
        toAdaptee.request();


        System.out.println("Adapter to target -----------------------------");
        TwoWayTarget target = new TargetRealize();
        TwoWayAdapter toTarget = new TwoWayAdapter(target);
        toTarget.specificRequest();
    }
}
